import {defineStore} from 'pinia'
import { reqCountries } from '../api'
export const useRatio = defineStore('ratio',{
    state(){
        return {
            data : []
        }
    },
    actions:{
        //获取各国家出品电影的数量
        async ratio(year:number){
            let result = await reqCountries(year)
            if(result.status == 200){
                this.data = result.data.data    
            }
        }
    }
})